find_package(Doxygen)








configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxygen/Doxyfile.in
               ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxygen/header.html.in
               ${CMAKE_CURRENT_BINARY_DIR}/header.html @ONLY)

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxygen/footer.html.in
               ${CMAKE_CURRENT_BINARY_DIR}/footer.html @ONLY)

add_custom_target(doc
    ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
    COMMENT "Generating API documentation with Doxygen" VERBATIM
)


